package commands.nc;

import networkcontroller.TCPConnection;



public class NCSearchInternal extends NCSearch
{
	private TCPConnection tcpConnection=null;
	private String			host=null;
	
	private int			port=0;
	
	
	//for tcp search
	public NCSearchInternal(String searchName, int minSize, int maxSize,
			String sum,int id, TCPConnection tcpConnection)
	{
		super(searchName, minSize, maxSize,sum,id);
		this.tcpConnection = tcpConnection;
	}

	//for udp search
	public NCSearchInternal(String host,int port,String searchName, int minSize, int maxSize,String sum,
			int id)
	{
		super(searchName, minSize, maxSize, sum,id);
		this.host = host;
		this.port = port;
	}

	
	public TCPConnection getTcpConnection()
	{
		return tcpConnection;
	}
	
	public String getHost()
	{
		return host;
	}

	public int getPort()
	{
		return port;
	}

	
}
